package com.itdachang.design.creatation.singleton;

import java.util.Properties;

/**
 * @author gcq
 * @Create 2022-02-06
 */
public class MainTest {
    public static void main(String[] args) {
        /**
         * 只会创建一个对象
         */
        Person instance = Person.getInstance();
        Person instance1 = Person.getInstance();

        Properties properties = System.getProperties();
        System.out.println(properties);
    }
}